<?php
require_once('classes/Databases.class.php');

class Mahasiswa extends Databases{
  protected $sqlFile='com/mahasiswa/bussines/mahasiswa.sql.php';
  public function __construct(){
    parent::__construct();
  }
  function getListDosen($mhsId){
    $result = $this->open($this->sqlQueries['get_list_dosen'],array($mhsId));
    return $result;
  }

  function getInfoMahasiswa($mhsId){
    $result=$this->open($this->sqlQueries['get_info_mhs'],array($mhsId,$mhsId));
    return $result;
  }
  
  function getTugasAkhirMahasiswa($mhsId){
    $result=$this->open($this->sqlQueries['get_tugas_akhir_mhs'],array($mhsId));
    return $result;
  }
  
  function getDokTaMahasiswa($mhsId){
    $result=$this->open($this->sqlQueries['get_ta_dok_mhs'],array($mhsId));
    return $result;
  }
  
  function doUpdateProfilMahasiswa($mhsNama,$mhsAlamat,$mhsNoTelp,$mhsEmail,$mhsId){
  #print($mhsNama);exit;
    $result=$this->execute($this->sqlQueries['do_update_profil_mhs'],array($mhsNama,$mhsAlamat,$mhsNoTelp,$mhsEmail,$mhsId));
    return $result;
  }
}
?>
